﻿using RearLivestock.Common.Domains.Common;
using System.ComponentModel.DataAnnotations;

namespace RearLivestock.Common.Domains.wbx
{
    /// <summary>
    /// 仔猪断奶
    /// </summary>
    public class PigletsWeaning: BaseEntity
    {
        /// <summary>
        /// 仔猪断奶ID
        /// </summary>
        [Key]
        public int PigletsWeaningId {  get; set; }

        /// <summary>
        /// 耳号
        /// </summary>
        public int BasicInforId { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        public int Gender { get; set; }
        /// <summary>
        /// 当前所在栋舍
        /// </summary>
        [StringLength(100)]
        public string Currentbuilding { get; set; }=string.Empty;

        /// <summary>
        /// 当前所在栏位
        /// </summary>
        [StringLength(100)]
        public string Currentfield { get; set; } = string.Empty;
        /// <summary>
        /// 转入的栋舍
        /// </summary>
        public int Transferbuilding { get; set; }
        /// <summary>
        /// 转入的栏位
        /// </summary>
        public int Transferfield { get; set; }
        /// <summary>
        /// 断奶日期
        /// </summary>
        public DateTime WeaningDate { get; set; }
        /// <summary>
        /// 断奶总窝重（公斤）
        /// </summary>
        public decimal WeaningWeight { get; set; }
        /// <summary>
        /// 单据号
        /// </summary>
        [StringLength(100)]
        public string DocumentNo { get; set; } = string.Empty;

        /// <summary>
        /// 流水号
        /// </summary>
        [StringLength(100)]
        public string SerialNo { get; set; } = string.Empty;
    }
}
